package com.hbnrtech.sip.gb28181.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author liuduo
 * @date 2025-04-21 10:11
 */
@Component
@ConfigurationProperties(prefix = "sip.server")
@Data
public class SipConfigProperties {
    private String ip; // 监听 IP (监听所有本地接口)
    private int port = 5060; // 监听端口
    private String domain; // GB28181通常是SIP服务器的ID
    private String password; // 密码，如果 requireAuth=true 则需要
    private boolean requireAuth = false; // 默认不要求认证
    private String realm; // 认证域
    Integer ptzSpeed = 50;

    private String publicIp; // 公网IP
    private int publicPort; // 公网端口
}
